import request from '@/utuls/request'
export const getPicCode = () => {
  return request.get('/captcha/image')
}
export const getMsgCode = (captchaCode, captchaKey, mobile) => {
  return request.post('/captcha/sendSmsCaptcha', {
    form: {
      captchaCode,
      captchaKey,
      mobile
    }
  })
}
export const codeLogin = (mobile, smsCode) => {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      mobile,
      partyData: {},
      smsCode
    }
  })
}
// export const tabValue = (status, message, data) => {
//   return request.get('/goods/detail', {
//     form: {
//       status,
//       message,
//       data
//     }
//   })
// }
// 获取首页数据
